home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Commun⁄Network / Telnet 2.5.src.ThinkC / source / rg2.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-15  |  1.7 KB  |  98 lines  |  [TEXT/MPS ]

  1. /*
  2.  *
  3.  *      Virtual Graphics Kernel Real Graphics Interface
  4.  *                          (rg2.c)
  5.  *
  6.  *   National Center for Supercomputing Applications
  7.  *      by Gaige B. Paulsen
  8.  *
  9.  *    This file contains the macintosh real screen calls for the NCSA
  10.  *  Virtual Graphics Kernel.
  11.  *
  12.  *    Following are the Per Device calls:
  13.  *
  14.  *      RGsetdevice( n)             - Use device n for future output
  15.  * wn = RGnewwindow( name, x1,y1,x2,y2)
  16.  *                                    - create a new window 
  17.  * wn = RGsubwindow( wn,x1,y1,x2,y2)- create a new subwindow in window wn
  18.  *      RGsetwindow( wn)             - Set the current window to wn
  19.  *      RGdestroy( wn)                - Destroy window wn
  20.  * ok = RGupdate( wind)                - Perform graphics update on window n
  21.  * wn = RGfindwn( wind)              - Get the wn from the window pointer
  22.  * ok = RGclick( wind)                - Handle click in the window 
  23.  *
  24.  *
  25.  *      Version Date    Notes
  26.  *      ------- ------  ---------------------------------------------------
  27.  *        0.5     880912    Initial Coding -GBP
  28.  */
  29.  
  30. #include <Windows.h>
  31.  
  32. #include "vrrgmac.h"
  33.  
  34. #define RG_MAC    1                    /* For Now */
  35.  
  36. void RGsetdevice
  37.   (
  38.     int n
  39.   )
  40. {
  41.     if (n==RG_MAC)
  42.         MacRGsetdevice();
  43. }
  44.  
  45. int RGnewwindow( name, x1,y1,x2,y2)
  46. char *name;
  47. int x1,y1,x2,y2;
  48. {
  49.     return( MacRGnewwindow( name, x1, y1, x2, y2));
  50. }
  51.  
  52. int RGsubwindow( wn,x1,y1,x2,y2)
  53.     int wn,x1,y1,x2,y2;
  54.   {
  55. #pragma unused(x1, y1, x2, y2)
  56.     return(MacRGsubwindow( wn));
  57.   }
  58.  
  59. RGsetwindow( wn)
  60. int wn;
  61. {
  62.     MacRGsetwindow( wn);
  63. }
  64.  
  65. void RGdestroy
  66.   (
  67.     int wn
  68.   )
  69. {
  70.     MacRGdestroy(wn);
  71. }
  72.  
  73. #if 0                        /* BYU LSC */
  74. int RGupdate
  75.   (
  76.     WindowPtr wind
  77.   )
  78. {
  79.     return
  80.         MacRGupdate(wind);
  81. }
  82. #endif                        /* BYU LSC */
  83.  
  84. int RGfindwn( wind)
  85.     long wind;
  86.   {
  87. #pragma unused(wind)
  88.     return 0;
  89.   }
  90.  
  91. int RGclick( wind)
  92.     long wind;
  93.   {
  94. #pragma unused(wind)
  95.     return 0;
  96.   }
  97.  
  98.